﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Entities
{
    public class Teacher : BaseEntity<int>
    {
        //public Teacher(Department department)
        //{
        //    this.Department = department;
        //}
        public Teacher()
        {
            this.Department = new Department();
            LoadAtoms = new List<LoadAtom>();
        }

        public virtual string Family { get; set; }
        public virtual string Name { get; set; }
        public virtual string Patronymic { get; set; }
        public virtual string Degree { get; set; }
        public virtual string AcademicTitle { get; set; }
        public virtual Department Department { get; set; }

        public virtual IList<LoadAtom> LoadAtoms { get; set; }

        public virtual void AddAtom(LoadAtom atom)
        {
            atom.Teacher = this;
            LoadAtoms.Add(atom);
        }
    }
}